package com.yunzheng.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author Sun
 * @date 2020-07-27 22:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserPhoneDTO {

	@NotBlank
	@Pattern(regexp = "1\\d{10}", message = "无效的手机号")
	private String userPhone;
}
